from django.urls import path,re_path
from ..views import *

urlpatterns = [
    # 测试接口
    path('',IndexViews.test,name="myhome_test"),

    # 认证API
    path('api/admin/login',IndexViews.login,name="myhome_login"),
    path('api/admin/register',IndexViews.register,name="myhome_register"),
    path('api/admin/logout',IndexViews.logout,name="myhome_logout"),
    path('api/admin/unregister',IndexViews.unregister,name="myhome_unregister"),

    # 前台API
    path('api/home/about',UserViews.about,name="myhome_about"),
    path ('api/home/update', UserViews.update,name="myhome_update"),
    path ('api/home/password', UserViews.password,name="myhome_password"),

    # 后台API
    path ('api/admin/searchAll', AdminViews.searchAll,name="myhome_searchAll"),
    path ('api/admin/searchDelAll', AdminViews.searchDelAll,name="myhome_searchDelAll"),
    path ('api/admin/searchUseAll', AdminViews.searchUseAll,name="myhome_searchUseAll"),
    path ('api/admin/search', AdminViews.search,name="myhome_search"),

]
'''



'''
